package Test;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的用户类型（0,1）,0为普通用户，1为VIP用户");
        int user = sc.nextInt();
        System.out.println("请输入你花费的金额");
        int qian = sc.nextInt();
        if(user == 0){
            if(qian < 100){
                System.out.println("你没有折扣，要支付的金额为：" + qian);
            }
            else if(qian >= 100 ){
                double  qian2 = qian * 0.9;
                System.out.println("你折扣为0.9"+"要支付的金额为：" + qian2);
            }
        }
        else if(user == 1){
            if(qian <= 200){
                double qian3 = qian * 0.8;
                System.out.println("你折扣为0.8"+"要支付的金额为：" + qian3);
            }
            else if(qian > 200){
                double qian4 = qian * 0.75;
                System.out.println("你折扣为0.75"+"要支付的金额为：" + qian4);
            }
        }
    }
}
